package com.mingshashan.building.easy.core.service;

import com.mingshashan.building.easy.core.vo.DictionaryCreationVO;
import com.mingshashan.building.easy.core.vo.DictionaryTree;
import com.mingshashan.building.easy.core.vo.DictionaryVO;

/**
 * IDictionarySerivce
 *
 * @author jasonxu
 */
public interface IDictionarySerivce {
    DictionaryVO add(DictionaryCreationVO dictionaryCreationVO);

    DictionaryVO getById(Long id);

    DictionaryVO getByCode(String code);

    DictionaryVO update(Long id, DictionaryVO dictionaryVO);

    DictionaryTree getRootDictionaryTree(String rootCode);

    void delete(Long id);
}
